<template>
  <el-dialog v-model="visible" title="不通过原因">
    {{ info.advice }}
  </el-dialog>
</template>

<script setup lang="ts">
import { ref } from "vue";
import { getSingleAccountAudit } from "@/api/modules/audit";

const visible = ref(false);

const info = ref();

const acceptParams = async (id: number) => {
  const { data } = await getSingleAccountAudit({ id });
  info.value = data;
  visible.value = true;
};

defineExpose({ acceptParams });
</script>

<style></style>
